package com.yulinlin.authorization.modules;

import com.yulinlin.common.anno.JwtElement;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AuthController {

    @JwtElement
    @RequestMapping("/getUserInfo")
    public Object getUserInfo(){
        return SecurityContextHolder.getContext().getAuthentication();

    }


}
